const { connection } = require('../../../model/database')
module.exports = (req, res) => {
    var data  = req.body
    var sql = `update webset set  name = '${data.name}', description = '${data.description}' ,  keyword = '${data.keyword}', icon = '${data.icon}'   where id = ${data.id};`
    // 发送
    connection.query(sql, (error, reslut) => {
        if (error) {
            res.status(400).send('错误')
            return
        }
        res.status(200).send('修改成功')
    })
}